/**
 *
 * @description:
 * @author:junyong.hong
 * @createTime:2017/12/27
 * @version:1.0.0.0
 * @history:
 *    1、
 *    2、
 *
 */

define([
    'app'
],function (app) {
    'use strict';
    app.directive('controllerDirective',[function () {
        return{
            restrict:'EAC',
            templateUrl:'js/directive/controllerDirective/controllerDirective.html',
            scope:{
              title:'@'
            },
            controller:['$scope',function ($scope) {
                $scope.data = [
                    {id:1,name:'hjy'},
                    {id:2,name:'oli'},
                    {id:3,name:'cai'}
                ]
            }],
            link:function (scope,elem,attr) {
                $(elem).css({backgroundColor:attr['bgcolor'],color:attr['fontcolor']})/*.html(scope.title)*/;
            }

        }
    }]);
});


